package com.staryea.newcustomer.service.impl;


import com.staryea.newcustomer.dao.UserMapper;
import com.staryea.newcustomer.module.User;
import com.staryea.newcustomer.service.UserService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Auther: hs
 * @Date: 2019/3/15 15:32
 * @Description:
 */
@Service
public class UserServiceImpl implements UserService {

    private final UserMapper userMapper;

    public UserServiceImpl(UserMapper userMapper) {
        this.userMapper = userMapper;
    }

    @Override
    public List<User> listUsers() {
        return userMapper.listUsers();
    }
}
